export default {
  /**
   * 能耗监控涉及的接口-----------------------------------------------------------------------------
   *
   */

  /**
   * 历史能耗查询
   * @param  {number}  currentPage           当前页
   * @param  {number}  pageSize              每页显示数量
   * @param  {string}  devType               设备类型
   * @param  {string}  devName               设备名称
   * @param  {string}  districtId            安装区域
   * @param  {string}  pointId               安装点位
   *
   */
  "POST /energy/energyhistory/queryEnergyHisList": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0",
      data: {
        pagination: {
          current: 1,
          pageSize: 30,
          total: 40
        },
        list: [
          {
            devId: "001",
            devType: "01",
            devName: "网络摄像头",
            districtId:"1",
            districtName:"杭州",
            voltage: "220",
            electricCurrent: "10",
            electricEnergy: "20",
            temperature: "30",
            humidity: "50",
            updateTime:1515554892000,
          },
          {
            devId: "002",
            devType: "01",
            devName: "网络摄像头",
            districtId:"1",
            districtName:"杭州",
            voltage: "220",
            electricCurrent: "10",
            electricEnergy: "20",
            temperature: "30",
            humidity: "50",
            updateTime:1515554892000,
          }
        ]
      }
    });
  },


  /**
   * 控制记录查询
   * @param  {number}  currentPage           当前页
   * @param  {number}  pageSize              每页显示数量
   * @param  {string}  devType               设备类型
   * @param  {string}  devName               设备名称
   * @param  {string}  districtId            安装区域
   * @param  {string}  pointId               安装点位
   */
  "POST /energy/energycontrol/queryControlList": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0",
      data: {
        pagination: {
          current: 1,
          pageSize: 30,
          total: 40
        },
        list: [
          {
            devId: "001",
            devType: "01",
            devName: "网络摄像头",
            districtId:"1",
            switchStatus: "01",
            districtName:"杭州",
            updateTime:1515554892000,
          },
          {
            devId: "002",
            devType: "01",
            devName: "网络摄像头",
            districtId:"1",
            switchStatus: "02",
            districtName:"杭州",
            updateTime:1515554892000,
          }
        ]
      }
    });
  },



  /**
   * 防盗信息查询
   * @param  {number}  currentPage           当前页
   * @param  {number}  pageSize              每页显示数量
   * @param  {string}  devType               设备类型
   * @param  {string}  devName               设备名称
   * @param  {string}  districtId            安装区域
   * @param  {string}  pointId               安装点位
   *
   */
  "POST /energy/energyburglarproof/queryBurglarproofList": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0",
      data: {
        pagination: {
          current: 1,
          pageSize: 30,
          total: 40
        },
        list: [
          {
            devId: "001",
            devType: "01",
            devName: "网络摄像头",
            districtId:"1",
            districtName:"杭州",
            burglarproofStatus:"01",
            updateTime:1515554892000,
          },
          {
            devId: "002",
            devType: "01",
            devName: "网络摄像头",
            districtId:"1",
            districtName:"杭州",
            burglarproofStatus:"02",
            updateTime:1515554892000,
          }
        ]
      }
    });
  },


  /**
   * 历史能耗导出
   * /energy/energyinfo/export
   * @param  {string}  devType               设备类型
   * @param  {string}  devName               设备名称
   * @param  {string}  districtId            安装区域
   * @param  {string}  pointId               安装点位
   */
  "POST /energy/energyinfo/export": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0"
    });
  },



  /**
   * 控制记录查询导出
   * /energy/controlrecord/export
   * @param  {string}  devType               设备类型
   * @param  {string}  devName               设备名称
   * @param  {string}  districtId            安装区域
   * @param  {string}  pointId               安装点位
   */
  "POST /energy/controlrecord/export": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0"
    });
  },


  /**
   * 防盗信息查询导出
   * /energy/burglarproof/export
   * @param  {string}  devType               设备类型
   * @param  {string}  devName               设备名称
   * @param  {string}  districtId            安装区域
   * @param  {string}  pointId               安装点位
   */
  "POST /energy/burglarproof/export": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0"
    });
  },



};
